package com.lebang.model.back;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * @Author: hwq
 * @Date: 2020/5/12 11:36
 * @Version 1.0
 */
public class ShanHuBack {
    public static JSONObject SUCCESS(int leftCoin, String msg, String payno) {
        String str = "{\"ret\":0,\"data\":{\"left_coin\":"+leftCoin+",\"payno\":\""+payno+"\"},\"msg\":\""+msg+"\"}";
        return JSON.parseObject(str);
    }

    public static JSONObject TOTALSUCCESS(int leftCoin) {
        String str = "{\"ret\":0,\"data\":{\"total_coin\":"+leftCoin+"},\"msg\":\"\"}";
        return JSON.parseObject(str);
    }

    public static JSONObject FAIL(String msg) {
        String str = "{\"ret\":1,\"data\":{\"left_coin\":0},\"msg\":\""+msg+"\"}";
        return JSON.parseObject(str);
    }
}
